additional range checks for ext/sockets