refactored the plan again.

Signed-off-by: Daniel Fagnan <dnfagnan@gmail.com>