fixing commands with multiple chunks