remove unneeded stuff and convert to gradle