add support for multiple corners