soapy: replace direction enum with integer