added basic log functionality