added predefined command handling