get prototype working