little helper function for scripts