bugfixes on main recipe