use __dirname instead of relative paths in all cases