change references after fork