minor updates in mock
start to integrate with openfire