modifications to make work with swagger plugin