fixed: set max time by command args