test new mbox
added type
change type to mbox
test
test
refactored code
refactored code