added generate keystore method