upgraded version to 1.2.1 to cope with slight changes in syntax