refactor unattached message model