cleanup resolution, fix edges