added the path model and updated the server backend so the paths are not hardcoded