initial tests looking good; error checking needs work