script for fetching timelapses