moving list command into a file on its own (issue 1591)

Removed accept - which is broken anyway and needs to be redone (issue 1479)