modify some logging
make class and port arguments