dynamic methods to get generated while loading instead of object initialization