factory core scripts and function