port more transformer functions