pass project to hooks