some d3 prototype stuff added