add check to commands variable after update suorce