fix len(p) handling, add support for global security update swagger.go in vendor, fix redundant break