[mod] move one import
[fix] add security measure
[mod] add a __main__ for testing