added changes to link all accounts