updating shared, various bugfixes & new helpers