improve configuration, add basic client management