added standalone log functionality