Fix device register use, make ships use libs for control