added retrieving embedded resources