added before_fork