edited header to do async stuff