better checking in setup