fix promise field expansion
fix api.server error states