finish support for loading encrypted resource