method to run NN synchronously, fixes #285