flat apis to fix server redirection issue

Added a bunch of flat apis to fix problems where server cannot be
configured to redirect the calls