add -m -h option and set timer