strip out directions code and assets