foundation structure for scripts