adding logging and tag filtering