fixed nonce generation causing an app crash, replaced serving mode request with the network layer