template manager dependences fixes