linux + general fixes