cleaned up extenion loading