added a default creation from YAML function that deprecate most of the others