add requirements function for commands