SERVICE_DIR should be global