add var type checking in setup