bin updated to support logging