rentame BAO file from resources to resource
impl retrieve resource function