added getprivatekey
now changing action string to error on error