add resources as local file resource

updated constants and refactored to bundle as local resource