refactoring movind fun get_id to config_handler
fixed some tests