using all four corners
cleaning up, and adding config options