renamed onLoaded to onLoad