added start/stop hooks