A few changes to make method data() to work properly

Signed-off-by: Suki <suki@missallsunday.com>
stuff for autoloading

Signed-off-by: Suki <suki@missallsunday.com>