fork problem workaround