before major refactorings to robot