add apt when it must be done