add friendly error message and type conversion to config.get()