changed shape api and updated broad and nearphase to work with more natural coords