add logging, cmd line args, interval