some fixes
refactoring of connection.rkt finished