added safeguard for :da and :ea arguments not ending with a slash