fixes some critical bugs that were breaking the interface