implements https://trello.com/c/NWQGwp5n