make sure prompt returns a string
use get_duration in q-mgr.py