avoid login and logout when execute every command