exec command is working but it currently is a busy wait