insert titanium specific code