added user and message classes. improved fetch methods