working basic loop on dev machine with much better timing than python