remove backends directory
don't rsplit newlines since splitlines does it