added: connection creation and allocation, input parser loop