update hooks to recieve $app on each method call to clean up the static.