order of evaluation should match that of bash
better arg parsing
use full script name