add file based commands and early behaviour code