setSerializer should be static as well