cleaning up the TableTapEngine for it to be used as a library