add dummy functions for those that are missing and fix errors