introduced timer and repackage functions