fixed linux bugs