changed the way arguments are passed in order to be able to print logs