refactored blueprinted app passes tests