add checkDebugFlag
add subscription_service
improve behavior with implemented request on server
add write service