cleaned up external references