moved reflect code to cherry namespace