more logging and user-friendliness