adds resources helper for cleaner code