implemented target extensions and directories as json