web: inline some functions