Language now stored on attributes object

fixes #564