refactored char, refactored app, some bugs x3