did everything in the standalone version except safe exit on bad data