make implementing after_fork optional