improve malformed config file handling
status not being updated correctly