add correct dir for vars
add templates