added removal of expired jobs