use use_inline_resources only if defined