separete hooks to tmp goroutine