add defaults and resources