improve postreceive hook