add categoryprompt, some main/category functions
fix conflict