log/trap edits