added error log / fix list opt