fixed housekeeping script for 1.3