add const
fix pack-switch css
fix lock logic and add some testing code