reads important bits from yaml