add field to configure if the agend sould run in server or client mode