v0.5.0, implementing all features from original audit module