managed to run async method from sync method