setup device mapping