set all of the callbacks. find error with settings env.