add command line args; change sub interval back to 5 secs