fixed smarty adapter to work with additional templates