added direction constraints for creating connections