optimize structure, configs and add client bot