fix id stuff and remove unnecessary directory creation