add isLoaded method