setup postmitt, fix errors