poc code, should move to lockscreen