modified for multipule devs and cores