add a timeout for the pug command