added basic stack operations on commands