retrofitted from mongoose, unified linux version