run returns traceback, integration refactor and fixes