got grantAchivement() working well, avoiding race conditions