move some utilities to Firefly Device library