add q clean-up method
add q autoclean option