added protocol registration for windows, made regex less restrictive