basic atomic wrapper