added simulator support for old templates