add debug_level, fix services type