added function to serve locals file