version 0.0.0.1 with lval and error handling