remove renderAccount middleware
finish refactor linux