move loading data from embedded resource to utility class