improved error handling
support for variables, split metrics settings