added some todos on error handling.