fixed has many through

PR #57 rebased and cleaned.