fixed bugs due to interface changes