devkey logic rework