remove unneeded commands and fix ubuntu