find a better way to enable php hooks
disable some scripts by default and document that