fix a lot of best_practice errors