adding active field to session object
cleaning command management and adding rename command