logging and global filters
remove reduce, and global functions