added deserialisation functionality for yaml-files