split out devices setup into separate file, take in parameter for configuration