adapt for local use