frame commands refactoring