adding support for the flip directions: TOP_BOTTOM and BOTTOM_TOP
.