load algorithm listener working

I'm sorry for the istanceof