implement thread object and start public api environment
Switch supervise hardcoding to use proper _ENV.