fixed require paths, object is not global