bug fix: replaced the run_every gem with a simple while loop