corrected warnings check and added freen marker on success