added resources and server code