housekeeping for q