Added check for cli before mounting controllers