fix issue with led not staying on - may reintroduce resource lock issues :(