added compatibility with firegosx