fix create implementation with leading slashes