update for swagger.js#14, #138, #139