Fixed encoding issue that was created when those methods ware defined on the fly
fixed config to be daemonized