finally working server side
fixed now wrong path for the client