give error message if local module is not found
give 500 response in error cases