simplify pre-receive