Fixed lock command, was ignoring ttl from argument and interaction

re-open PR #26