compatability fixes