add support for declare_yaml