add 'only' option to serializer