Add interface for loading from a string, relax some package restrictions