save output log under current directory
add support for methods/functions