fixing conditions for exposing templite