changes for compatibility on linux