ported templates