pre-JSON conversion branch