added some horrible code for configuring porter