basic working functionality for fetching the commands