use parameter for timestamps file and check if file exists