change map references to dict, started using default params, getting a 'header' error