few length errors
@TODO need a way of detecting proper string length
@TODO need a way to determine what length each internal api is expecting