added os exports and fixed web lag