reintroduced forking, javascript changes