add separate controller, refactor framework, ability to parse traces from frontend