add make hosts method

Signed-off-by: huhamhire <me@huhamhire.com>
adjust make hosts method

Signed-off-by: huhamhire <me@huhamhire.com>
add privilege check for curseshosts

Signed-off-by: huhamhire <me@huhamhire.com>