manually inline some critical code