fixes deprecation

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