trying to fix async call of get returning before echo of command