upgraded version to 1.2.0 to fix defer