move loading yaml when it is needed, closes #53