Made associationId optional. fixes #119