working prorotype 1.4.1 optimized for remote calculations