quit when pressing 'q'