added older version compatibility, working for 3.2-4.1.2 so far