almost finish main module translation