changes to work in redmine 2.1.x