update executeCommand and create functions