properly implement miny and maxy options