auto scan modules + handle errors