some utility functions for C++ addins that link to ObjectHandler
reorganize directories