merge atmlib to this