integrating @aaroncraigongithub's work from aaroncraigongithub/ice_cube