baselly format all the code and fix bugs