parse argument before lock/check and do it only if we need to sync