updated some on api for resolving errors