return null if templates path doesn't exist