switch to before_fork