added header security and removal of bug in mime type