actual implementation

Tested this in Atom 0.90.0