fix #51, -d works again