update to new serializer and removal of middleware
update composer to work with serializer branch of bernard