fix doorkeeper code to depend on organizations.