adds plugin level hooks support