switch to input file and add sweet heartbeat
possibly fix flow problem