fix exit fail
refactoring BDD to use records and new API format WIP