fixed: bug with notify => site not working in some cases
changed: moved plugin hook functions to own file