fixes deprecation

new usage of fo the now command and the file reading thing.