enhanced import/transform to support variables and imported pages