handle drain lookup as list or binary