allow open command to be customised