still trying to fix external errors