move ops init into core instead of main