normalize requires in sockets hook to match conventions