basic scheduler that runs every 5 secs