I just did not see a better way quickly , so that's what I did.
Any reason why Redis connection is made in a separate connect method and not in register method?

Anyway I'l try to implement script loading not in conect method, but it will probably look much uglier :)