improve error message if coordinates out of matrix
rename namespace popen and unix_socket to net