fleshing out server direct code api