fixed bug on change user and removed unused packages