autocomplete required packages as second argumet