working on support for 'log'