added draft of cap_log