server file cleaned by spliting it in different controllers