allow for multiple foreign keys to the same model (fixes #16)