New API functionality
minor fixes.