lisp implementation for connections mapping