move to resources folder
refactor server for readable