fix template & add set operator & add user fetch function