setup fixes and separating post-receive and sync