changes to the way builtins are registered, and some ios fixes