fix debug and format everything