spec load function