small tweaks + adding a type flag to transactions