public directory can now be passed to server as argument