improvements for add optional phases action