fixed autoloadbug
added version dependen handling