fixes #344 - covert value using mapping
small enhancements to covert functionality