bugfixes and sheet implementation