fixing send commmand