updated to be able to really execute a command