nix debugger
message for asset replacement

fixes #438
check for empty file

fixes #466