WIP: automating calculating the cbf sign