reworked script, timestamp to filename added