update terrible permissions hack