getRemotes() rewrite and composer update