better indexof, isloaded true