added some async stuff in setup procedure (not tested)