added aws custom parameters
added mime support