add workspace file
fix states set