move ice init into main function