use q.when for resolving the config regardless of if it is sync or not