improved workspace clear
process json files when dropped