fixed call stack indentation
switched from websockets to long polling with async context