almost completely functioning piggy2