lib: adding error function
lib: adding transaction processing function