able to add new types via js