everything's a mess but got the Chain environment working, not sure if we can do better