hmmm still difficult to debug these errors