removed dir param from createConnection and createRelationship