switch from json to yaml, require some magic