#35 : keep refactoring to allow REST calls

support REST calls (without redirecting) #35