fixed linux build after refactoring