added functionality for metaData handling. close #156