better handling of exception codes and logging
Shared sapi service configurable SAPI url
Better exception handling