added parallel port functionality