added vtec error checking, cosmetics of output