prepared dir for server side