added first draft of if else block for dojosailing