updates Payload properties
moves logger into its own file