costmin support for non-increasing RTS
cleanup