lib edits for source processing