remove debug output; include '.' in extension