converting the gemlock to linux version