added return results for commands