fixed bugs and removed unsupported features.