add function on multisite model