add get functions, wait for ready state