cast init vars to floats
add ability to get error text