fixing time scripts