added support for sending config to api and to add recipes