improve placeholder error handling