fixes for rex 4.6

template renamed