moved list_profiles_info to server.py