Fixing problems with primus, added err redirect