started refactoring message loading technique