v1.2 see readme for details