use __dirname to get file path