add comparing and autoload