lol constructor fix
added payload factory
updated loader to load factory