adding hooks for start/stop