for the taketimelapse script