change methods for getting path file for seperate client-side and server-side