script for lockpi