update api to use [w,s,e,n] instead of topleft and bottomright