removing etc dir that doesn't exist
removing unnecessary flags