duplicate codes now don\'t error 500 most of the time