improved cross platform compatability