#145 moved extract method to command struct
fix some unsused parameter warnings