wrappers / helpers for js functions